package com.sky.service;

import com.sky.dto.EmployeeLoginDTO;
import com.sky.dto.EmployeePageQueryDTO;
import com.sky.entity.Employee;
import com.sky.result.PageBean;

public interface EmployeeService {

    // 员工登录
    Employee login(EmployeeLoginDTO employeeLoginDTO);

    /**
     * 员工分页
     * @param employeePageQueryDTO
     * @return
     */
    PageBean findByPage(EmployeePageQueryDTO employeePageQueryDTO);

    /**
     * 新增员工
     * @param employee
     */
    void save(Employee employee);


    /**
     * 回显员工  (id 查询)
     * @param id
     * @return
     */
    Employee findById(Long id);

    /**
     * 修改员工
     * @param employee
     */
    void update(Employee employee);
}
